package jiliang.purchase.demo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Tongjitaizhangdemo {
	
	private String bh;
	private String xiangmumc;
	private String lianxiren;
	private String lianxidh;
	private String dw_mc;
	private String jingfeimc;
	private String jingfeidm;
	private String caigoufs;
	private String hejije;
	private String sq_shijian;
	private String sh_riqi;
	private String last_lc;
	public Tongjitaizhangdemo() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Tongjitaizhangdemo(String bh, String xiangmumc, String lianxiren,
			String lianxidh, String dwMc, String jingfeimc, String jingfeidm,
			String caigoufs, String hejije, String sqShijian, String shRiqi,
			String lastLc) {
		super();
		this.bh = bh;
		this.xiangmumc = xiangmumc;
		this.lianxiren = lianxiren;
		this.lianxidh = lianxidh;
		dw_mc = dwMc;
		this.jingfeimc = jingfeimc;
		this.jingfeidm = jingfeidm;
		this.caigoufs = caigoufs;
		this.hejije = hejije;
		sq_shijian = sqShijian;
		sh_riqi = shRiqi;
		last_lc = lastLc;
	}
	public String getBh() {
		return bh;
	}
	public void setBh(String bh) {
		this.bh = bh;
	}
	public String getXiangmumc() {
		return xiangmumc;
	}
	public void setXiangmumc(String xiangmumc) {
		this.xiangmumc = xiangmumc;
	}
	public String getLianxiren() {
		return lianxiren;
	}
	public void setLianxiren(String lianxiren) {
		this.lianxiren = lianxiren;
	}
	public String getLianxidh() {
		return lianxidh;
	}
	public void setLianxidh(String lianxidh) {
		this.lianxidh = lianxidh;
	}
	public String getDw_mc() {
		return dw_mc;
	}
	public void setDw_mc(String dwMc) {
		dw_mc = dwMc;
	}
	public String getJingfeimc() {
		return jingfeimc;
	}
	public void setJingfeimc(String jingfeimc) {
		this.jingfeimc = jingfeimc;
	}
	public String getJingfeidm() {
		return jingfeidm;
	}
	public void setJingfeidm(String jingfeidm) {
		this.jingfeidm = jingfeidm;
	}
	public String getCaigoufs() {
		return caigoufs;
	}
	public void setCaigoufs(String caigoufs) {
		this.caigoufs = caigoufs;
	}
	public String getHejije() {
		return hejije;
	}
	public void setHejije(String hejije) {
		this.hejije = hejije;
	}
	public String getSq_shijian() {
		return sq_shijian;
	}
	public void setSq_shijian(String sqShijian) {
		sq_shijian = sqShijian;
	}
	public String getSh_riqi() {
		return sh_riqi;
	}
	public void setSh_riqi(String shRiqi) {
		sh_riqi = shRiqi;
	}
	public String getLast_lc() {
		return last_lc;
	}
	public void setLast_lc(String lastLc) {
		last_lc = lastLc;
	}

	public String getByName(String name)
	{
		Map<String,Integer> map = new HashMap<String,Integer>();
		map.put("think_shenqing.bh", 1);
		map.put("xiangmumc", 2);
		map.put("lianxiren", 3);
		map.put("lianxidh", 4);
		map.put("dw_mc", 5);
		map.put("jingfeimc", 6);
		map.put("jingfeidm", 7);
		map.put("caigoufs", 8);
		map.put("hejije", 9);
		map.put("sq_shijian", 10);
		map.put("sh_riqi", 11);
		map.put("last_lc", 12);
		
		switch(map.get(name))
		{
		case 1:
			return this.bh;
		case 2:
			return this.xiangmumc;
		case 3:
			return this.lianxiren;
		case 4:
			return this.lianxidh;
		case 5:
			return this.dw_mc;
		case 6:
			return this.jingfeimc;
		case 7:
			return this.jingfeidm;
		case 8:
			return this.caigoufs;
		case 9:
			return this.hejije;
		case 10:
			return this.sq_shijian;
		case 11:
			return this.sh_riqi;
		case 12:
			return this.last_lc;
		}
		
		return null;
	}
	
	
	

}
